<?PHP

//default values

$e['server']='rtmp://m-.pinoytuner.com/cfx/st';
$e['artwork']='http://d-a.pinoytuner.com/';
$e['duration']='00:00';
$e['file']='mp3:';
$e['composer']='-';
$table='media';
$id='id';
$catch='name';
include 'b/default_process_form.php';
printformheader('Music',$content_msg);


begin_form($_GET['cmd'],$id);
?>
<h2>Server</h2>
<?PHP
p_input('server',$o,$e);
p_input('file',$o,$e);?>
<h2>Metadata</h2>
<?PHP
	p_input('artist',$o,$e);
	p_input('name',$o,$e);
	p_input('album',$o,$e);
	p_input('genre',$o,$e);
	p_input('composer',$o,$e);
	p_input('label',$o,$e);
	p_input('artwork',$o,$e);
	p_input('duration',$o,$e);
	$enum_data=get_enum($table,'type');
	p_select('type',$enum_data,$e,'0','1',$o);
	if($_GET['cmd']=='edit')
	{
		delete_item();
	}
	

	printsubmit("Save");
	end_form($_GET['cmd']);
	printformfooter('View Music','?q=m/music/v_music.php',NULL,NULL,NULL,NULL);




?>